﻿using SDCloudSolution.SDCloud.ModelRunAgent.Infrastructure.Interfaces;

namespace SDCloudSolution.SDCloud.ModelRunAgent.Infrastructure.Engines
{
    public class PythonEngineModelExecutorFactory : IModelExecutorFactory
    {
        private readonly IPysdServiceSettingsProvider _settingsProvider;

        public PythonEngineModelExecutorFactory(IPysdServiceSettingsProvider settingsProvider)
        {
            _settingsProvider = settingsProvider;
        }

        public BaseModelExecutor CreateModelExecutor(IModelExecutionContextProvider contextProvider)
        {
            return new PysdModelExecutor(contextProvider, _settingsProvider);
        }
    }
}
